﻿using Microsoft.SharePoint;
using System;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls.WebParts;

namespace Kaskelot.SP.UI.Analys
{
	public partial class AnalysWebControl : UserControl
	{
		public string ServiceUrl { get { return SPContext.Current.Site.Url + "/_vti_bin/Kaskelot.SP.Resources/ClientAnalysService.svc"; } }
		public string IsAdmin
		{
			get
			{
				//return SecurityService.DoesUserHavePermissions(ApplicationContext.Current.Role, Model.Permission.SuperUser).ToString();
				return "true";
			}
		}

		protected void Page_Load(object sender, EventArgs e)
		{
			//if (SecurityService.DoesUserHavePermissions(ApplicationContext.Current.Role, Model.Permission.ViewRestrictedPages) == false)
			//	this.Visible = false;
		}
	}
}
